(set: $ingredients to (a: "cheese", "pepperoni", "mushrooms", "magic herbs"))
(set: $selectedIngredients to (a:))
(set: $gold to 50)
(set: $reputation to 0)
(set: $history to (a:))
(set: $history to $history + (a: (passage:)))
Welcome to Mystic Slice! You will be running a mystical pizzeria, gain reputation and make your pizzeria famous.
You will start with 50 gold and 0 reputation.
Gold: (print: $gold)
Reputation: (print: $reputation)
<hr>
What would you like to do?
<hr>
[[Serve a Customer->Serve Customer]]
[[Learn About Ingredients->Learn the Ingredients]]
[[Image Credits->Image Credits]]
[[Check Inventory->Inventory]]
(set: $playername to (prompt: "What is your name?:", "Player's name"))
(set: $history to (a:))
A customer walks in with a request:
(set: $customerRequest to (random: 1, 3))
(if: $customerRequest is 1)[
A wizard enters and says, "I’d like a pizza that makes me feel lucky!"<br>
[[Choose Ingredients->Choose Ingredients (Lucky)]]
]
(else-if: $customerRequest is 2)[
A Samurai rushes in and says, "I need a pizza to help me focus on my battle!"<br>
[[Choose Ingredients->Choose Ingredients (Focus)]]
]
(else:)[
A knight walks in and says, "I need a pizza to give me courage before war."<br>
[[Choose Ingredients->Choose Ingredients (Courage)]]
]
[[Return to Main Menu->Main Menu]]
(if: $history's length > 1)[
(link: "Go Back")[
(set: $lastPassage to $history's last)
(set: $history to $history - (a: $lastPassage))
(goto: $lastPassage)
]
]The wizard watches you carefully. Choose the ingredients for a lucky pizza:
(set: $ingredients to "")
Select a ingredient:
|ingredients>[{
(link: "Pepperoni")[
(set: $ingredients to "pepperoni")
(replace: ?ingredients)[Pepperoni]
]
<br>
(link: "Mushrooms")[
(set: $ingredients to "Mushrooms")
(replace: ?ingredients)[Mushrooms]
]
<br>
(link: "Magic Herbs")[
(set: $ingredients to "Magic Herbs")
(replace: ?ingredients)[Magic Herbs]
]
(link: "Cheese")[
(set: $ingredients to "Cheese")
(replace: ?ingredients)[Cheese]
]
}]A training Samurai comes in, hungry and worried about their battle coming up make them a focus pizza:
(set: $ingredients to "")
Select a ingredient:
|ingredients>[{
(link: "Pepperoni")[
(set: $ingredients to "pepperoni")
(replace: ?ingredients)[Pepperoni]
]
<br>
(link: "Mushrooms")[
(set: $ingredients to "Mushrooms")
(replace: ?ingredients)[Mushrooms]
]
<br>
(link: "Magic Herbs")[
(set: $ingredients to "Magic Herbs")
(replace: ?ingredients)[Magic Herbs]
]
(link: "Cheese")[
(set: $ingredients to "Cheese")
(replace: ?ingredients)[Cheese]
]
}]The knight clenches his fists, preparing for battle he will need a courageous pizza:
(set: $ingredients to "")
Select a ingredient:
|ingredients>[{
(link: "Pepperoni")[
(set: $ingredients to "pepperoni")
(replace: ?ingredients)[Pepperoni]
]
<br>
(link: "Mushrooms")[
(set: $ingredients to "Mushrooms")
(replace: ?ingredients)[Mushrooms]
]
<br>
(link: "Magic Herbs")[
(set: $ingredients to "Magic Herbs")
(replace: ?ingredients)[Magic Herbs]
]
(link: "Cheese")[
(set: $ingredients to "Cheese")
(replace: ?ingredients)[Cheese]
]
}](set: $history to (a:))
<!-- Track History in each passage -->
(set: $history to $history + (a: (passage:)))
**Learn About Ingredients**
* **Cheese**: The base for any pizza, brings comfort and joy.
* **Pepperoni**: Adds a touch of excitement and boldness.
* **Mushrooms**: Known for their earthy quality and calming effects.
* **Magic Herbs**: A secret blend that can grant special properties to the pizza, like luck or courage.
[[Return to Main Menu->Main Menu]]
(if: $history's length > 1)[
(link: "Go Back")[
(set: $lastPassage to $history's last)
(set: $history to $history - (a: $lastPassage))
(goto: $lastPassage)
]
]
(set: $history to (a:))
Your inventory contains the following ingredients:
(if: $ingredients's length > 0)[
(for: each _item, ...$ingredients)[
* _item<br>
]
](else:)[
Your inventory is empty.
]
Selected ingredients for your current pizza:
(if: $selectedIngredients's length > 0)[
(for: each _item, ...$selectedIngredients)[
* _item<br>
]
](else:)[
None selected yet.
]
[[Return to Main Menu->Main Menu]]
(if: $history's length > 1)[
(link: "Go Back")[
(set: $lastPassage to $history's last)
(set: $history to $history - (a: $lastPassage))
(goto: $lastPassage)
]
](link: "Ingredients Image")[(goto-url: 'https://www.freepik.com/free-photo/view-pizza-ingredients-arrangement_9095269.htm#fromView=search&page=1&position=4&uuid=c32ee3ca-1444-4a91-b289-70a1e8b808a7')]
(link: "Wizard Image")[(goto-url: 'https://pixabay.com/illustrations/night-mountains-fields-wizard-8859930/')]
(link: "Main Menu Image")[(goto-url: 'https://unsplash.com/photos/a-room-with-a-table-and-chairs-cArpn-6P0LU')]
(link: "Knight Image")[(goto-url: 'https://www.deviantart.com/paper10ve/art/Last-remaining-holy-knight-1084800614')]
(link: "Samurai Image")[(goto-url: 'https://www.deviantart.com/anavrin-ai/art/Samurai-Girl-1-1103447172')]